package com.ysf.web.controller;

import com.ysf.biz.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ysf
 * @date 2020/2/28 21:41
 */
@RestController
@RequestMapping("demo")
public class DemoController {

    @Resource
    private DemoService demoService;

    @RequestMapping("s")
    public String tests(){
        return demoService.test();
    }

    @GetMapping("hello")
    public String hello(){
        return "How do you do!";
    }



}
